﻿<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>PageMethods C# demo</title>
</head>
<body>
  <form id="form1" runat="server">
    <div>
	    <p>
		  <asp:hyperlink id="lnkCustomers_Code" runat="server">Customers by code</asp:hyperlink>
		  </p>

		  <p>
		  <asp:hyperlink id="lnkProduct" runat="server">Product</asp:hyperlink><br/>
		  <asp:hyperlink id="lnkMissingParam" runat="server">Missing parameter</asp:hyperlink>
		  </p>
  	
		  <p>
		  <asp:hyperlink id="lnkTestEnum" runat="server">Test Enum</asp:hyperlink><br/>
		  <asp:hyperlink id="lnkTestBoolean" runat="server">Test Boolean</asp:hyperlink><br/>
		  <asp:hyperlink id="lnkTestDateTime" runat="server">Test DateTime</asp:hyperlink><br/>
		  <asp:hyperlink id="lnkTestDecimal" runat="server">Test Decimal</asp:hyperlink><br/>
		  <asp:hyperlink id="lnkTestGuid" runat="server">Test GUID</asp:hyperlink><br/>
		  <asp:hyperlink id="lnkTestEncoding1" runat="server">Test encoding 1</asp:hyperlink><br/>
		  <asp:hyperlink id="lnkTestEncoding2" runat="server">Test encoding 2</asp:hyperlink><br />
          <asp:HyperLink ID="lnkTestEncoding3" runat="server">Test encoding 3</asp:HyperLink><br/>
		  <asp:hyperlink id="lnkTestUrlFormat" runat="server">Test URL format</asp:hyperlink>
		  </p>
  		
		  <p>
		  <asp:hyperlink id="lnkFrmAddOrder_WithoutPageMethods" runat="server">FrmAddOrder_WithoutPageMethods</asp:hyperlink><br/>
		  <asp:hyperlink id="lnkFrmAddOrder_WithPageMethods" runat="server">FrmAddOrder_WithPageMethods</asp:hyperlink>
		  </p>

		  <p>
		  <asp:hyperlink id="lnkCodeInside_MethodInside" runat="server">CodeInside MethodInside</asp:hyperlink><br/>
		  <asp:hyperlink id="lnkCodeInside_MethodBehind" runat="server">CodeInside MethodBehind</asp:hyperlink>
		  </p>
  		
		  <p>
		  <asp:hyperlink id="lnkHttpHandler_CodeInside" runat="server">HTTP handler (code inside)</asp:hyperlink><br/>
		  <asp:hyperlink id="lnkHttpHandler_CodeBehind" runat="server">HTTP handler (code behind)</asp:hyperlink>
		  </p>

      <p>
      <asp:HyperLink ID="lnkTestPost" runat="server">Post</asp:HyperLink><br/>
      <asp:HyperLink ID="lnkTestFormattedPost" runat="server">Formatted Post</asp:HyperLink>
      </p>

      <p>
      <asp:HyperLink ID="lnkTestCustomObject" runat="server">Custom object</asp:HyperLink><br/>
      <asp:HyperLink ID="lnkTestArray" runat="server">Array</asp:HyperLink><br/>
      <asp:HyperLink ID="lnkTestTypeConverter" runat="server">TypeConverter</asp:HyperLink>
      </p>

      <p>
      <asp:HyperLink ID="lnkCombineUri" runat="server">Combined URI</asp:HyperLink><br />
      <asp:HyperLink ID="lnkResolveUrl" runat="server">Resolved URL</asp:HyperLink><br />
      <br />
      <asp:HyperLink ID="lnkAbsoluteUrl" runat="server">This link shows how to build an absolute URL</asp:HyperLink> (this can be used when generating e-mails for example)
      </p>
    </div>
  </form>
</body>
</html>